//
//  HttpConnect.h
//  HandPay
//
//  Created by xy on 10-3-19.
//  Copyright 2010 HANDPAY. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HttpConnect : NSObject {
    NSMutableData* receiveData;
    BOOL finished;
    NSURLConnection *connect;
    //NSString* host;
    NSDictionary* receiveHeaders;
    int errorCode;
}

@property(nonatomic, retain)NSDictionary* receiveHeaders;
@property(nonatomic, retain)NSMutableData* receiveData;
@property(nonatomic, assign)int errorCode;
//-(NSData*)connect:(NSString*)req;
-(BOOL)connect:(NSString*)url req:(NSString*)req headers:(NSDictionary*)headers;
-(BOOL)connectImg:(NSString *)url req:(NSDictionary *)req headers:(NSDictionary *)headers;
@end
